#ifndef XBELVIEW_H
#define XBELVIEW_H

#include <QTreeView>
#include "xbelmodel.h"
#include "dialog.h"
#include "table2.h"

class Table2;
class XbelModel;
class QItemSelectionModel;

class XbelView : public QTreeView
{
    Q_OBJECT
public:
    explicit XbelView(QWidget *parent = 0);
    void mouseDoubleClickEvent ( QMouseEvent * event );

private:
    XbelModel *xbelmodel;
    Table2 *table2;
    QItemSelectionModel *selection;
public slots:
    void on_actionTest_triggered();
    void on_actionSend_triggered();
    void on_actionPrint_triggered();
    void on_actionNew_triggered();
    void on_actionRas_triggered();
    bool on_actionClose_triggered();
    void on_actionDelete_triggered();
    void on_actionInsertChild_triggered();
    //void on_actionAbout_triggered();
    void on_actionInsert_triggered();
    //void on_actionExit_triggered();
    void on_actionSave_triggered();
    void on_actionOpen_triggered();
};

#endif // XBELVIEW_H
